package com.sangu.dianxiu.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.sangu.dianxiu.BaseApp;
import com.sangu.dianxiu.R;


/**
 *
 * Description:自定义Dialog（参数传入Dialog样式文件，Dialog布局文件）
 *
 */
public class CustomDialog extends Dialog {
	int layoutRes;
	Context context;
	private Button confirmBtn;
	private Button cancelBtn;
	public CustomDialog(Context context) {
		super(context);
		this.context = context;
	}
	public CustomDialog(Context context, int resLayout) {
		super(context);
		this.context = context;
		this.layoutRes = resLayout;
	}

	public CustomDialog(Context context, int theme, int resLayout) {
		super(context, theme);
		this.context = context;
		this.layoutRes = resLayout;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(layoutRes);
		EditText etEnterpriseCode= (EditText) findViewById(R.id.et_add_enterprise_maintain_code);
		EditText etEnterprisePassword= (EditText)findViewById(R.id.et_add_enterprise_maintain_password);
		Button btnConfirm= (Button)findViewById(R.id.btn_add_enterprise_maintain_confirm);
		Button btnCancel= (Button)findViewById(R.id.btn_add_enterprise_maintain_cancel);
		btnConfirm.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {

			}
		});
		btnCancel.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {

			}
		});
	}
}